<?php
namespace Common\Controller;
use Think\Controller;
abstract class CommonController extends Controller {

    protected function _initialize() {

        if (!file_exists(X_DATA_PATH . 'install.lock')) {
            //不存在，则进入安装
            header('Location: ' . U('Install/index/index'));
            exit();
        }

        $this->config_tmpl_path();
    }

    //空操作
    public function _empty() {
        $this->error('无效操作');
    }

    abstract function config_tmpl_path();

}